import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useGlobalConfigStore = defineStore(
    'global-config',
    () => {
        const isDarkMode = ref(false)

        const setDarkMode = (mode: boolean) => {
            console.log('🚀 ~ setDarkMode ~ mode:', mode)
            isDarkMode.value = mode
        }

        return {
            isDarkMode,
            setDarkMode
        }
    }
)
